#!/usr/bin/env python
# -*- coding: utf-8 -*-

from concurrent.futures import ThreadPoolExecutor

import backup
import moodle
import usr1
import usr2
import gsf_filesrv
import ug_filesrv


def run_all():
    with ThreadPoolExecutor(max_workers=8) as executor:
        backup.run(executor)
        moodle.run(executor)
        usr1.run(executor)
        usr2.run(executor)
        gsf_filesrv.run(executor)
        ug_filesrv.run(executor)
    print('batch finish')


if __name__ == '__main__':
    run_all()
